import request from '@/utils/request'

export function listVersion(query) {
  return request({
    url: '/api/version/list',
    method: 'get',
    params: query
  })
}

export function getVersion(versionId) {
  return request({
    url: '/api/version/' + versionId,
    method: 'get'
  })
}

export function saveOrUpdateVersion(data) {
  return request({
    url: '/api/version/saveOrUpdate',
    method: 'post',
    data: data
  })
}

export function changeVersion(data) {
  return request({
    url: '/api/version/change',
    method: 'post',
    data: data
  })
}

export function delVersion(versionId) {
  return request({
    url: '/api/version/del/' + versionId,
    method: 'post'
  })
}
